package com.bgds.sys.api.bean.mars.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author Smiling
 * @description: TODO
 * @date 2021/5/24  21:31
 */
@ApiModel("节点指标最新值")
@Data
public class DataTimeSerise {

    @ApiModelProperty("测点 id")
    @JsonProperty(value = "id")
    private String id;


    @ApiModelProperty("指标编码")
    @JsonProperty(value = "code")
    private String code;


    @ApiModelProperty("值")
    @JsonProperty(value = "value")
    private Object value;

    @ApiModelProperty("单位")
    @JsonProperty(value = "unit")
    private String unit;

    @ApiModelProperty("报警等级")
    @JsonProperty(value = "alarm_level")
    private int alarmLevel;

    @ApiModelProperty("报警等级")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date time;


    @ApiModelProperty("数据质量 0=正常 1=错误")
    @JsonProperty(value = "quality")
    private int quality;

    @ApiModelProperty("数据来源 0= 在 线 采 集 器 ,1= 点 检 采 集 器 ,3- 软 件 计算,4=OPC,5=Modbus,6=104")
    @JsonProperty(value = "src")
    private int src;

    @ApiModelProperty("描述")
    @JsonProperty(value = "desc")
    private String desc;
}